package com.crm.service.cluePoolManager;

import com.crm.model.entity.cluePoolManager.CluePoolRule;
import com.crm.model.entity.cluePoolManager.CluePoolRuleExample;

import java.util.List;

/**
 * @Author yincuimei
 * @Date 2020/12/24 11:17
 */
public interface CluePoolRuleDbService {

    /**
     * 线索池规则表插入线索池规则
     * @param cluePoolRule
     * @return
     */
    Boolean insertCluePoolRule(CluePoolRule cluePoolRule);

    /**
     * 根据线索池id查询线索池规则
     * @param cluePoolId
     * @return
     */
    List<CluePoolRule> selectCluePoolRuleByCluePoolId(String cluePoolId);

    /**
     * 根据线索池id删除线索池规则
     * @param cluePoolId
     * @return
     */
    Boolean deleteCluePoolRuleByCluePoolId(String cluePoolId);

    /**
     * @author wll
     * info 查询当前线索池规则信息
     */
    CluePoolRule selectCluePoolMaxReceive(String poolId);
}
